#ifndef LFS_2040_H
#define LFS_2040_H

#include "lfs.h"
#include "lfs_util.h"

#ifdef __cplusplus
extern "C"
{
#endif

lfs_file_t *lfs_spiflash_open(const char *path, int flags, int abs);
lfs_ssize_t lfs_spiflash_write(lfs_file_t *file, const void *buffer, size_t size);
lfs_ssize_t lfs_spiflash_read(lfs_file_t *file, void *buffer, size_t size);
int lfs_spiflash_close(lfs_file_t *file);
void lfs_rp2040_init(void);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
